package main

import (
	"AiBus/global"
	"AiBus/router"
	"AiBus/utils"
	"github.com/gin-gonic/gin"
)

func main() {

	r := gin.Default()
	global.App.Viper = utils.SystemInit()
	global.App.DB = utils.InitSqlite()
	global.App.Redis = utils.ExampleNewClient()
	global.App.Log = utils.InitLogger()

	router.Start(r)
	r.Run(":" + global.App.Configuration.Server.Port)

}
